home *** CD-ROM | disk | FTP | other *** search
/ Aminet 41 / Aminet 41 (2001)(Schatztruhe)[!][Feb 2001].iso / Aminet / comm / www / GuiSGML.lha / GuiSGML / viewsgml < prev   
AmigaDOS Script File  |  2000-10-31  |  446b  |  28 lines

  1. .key file/a
  2. .bra {
  3. .ket }
  4. .dollar |
  5.  
  6. set RX "`which rx`"
  7. if "$RX" eq ""
  8.    set RX SYS:Rexxc/rx
  9. endif
  10.  
  11. ; This uses YAMs rexx script that can be configured for
  12. ; Voyager, AWeb and IBrowse.
  13. set VCMD="`echo $RX` YAM:Rexx/Yam2URL.rexx"
  14.  
  15. if exists "{file}"
  16.    ; Try to expand path
  17.    set XF `cd`/{file}
  18.    if exists $XF
  19.       $VCMD file:///$XF
  20.    else
  21. echo       $VCMD "file:///{file}"
  22.       $VCMD file:///{file}
  23.    endif
  24.    unset XF
  25. endif
  26.  
  27. unset VCMD
  28.